/*
** my.h for allum1 in /home/le_e//project/projet_b2/alum-1
** 
** Made by canh-kiet le
** Login   <le_e@epitech.net>
** 
** Started on  Tue Jan 31 23:54:38 2012 canh-kiet le
** Last update Mon Apr 30 20:58:34 2012 canh-kiet le
*/

#ifndef		__MY_H__
# define       	__MY_H__

#include	<stdlib.h>
#include	<unistd.h>
#include	<stdarg.h>
#include	<sys/types.h>
#include	<sys/stat.h>
#include	<fcntl.h>
#include	<math.h>

# define	BUFF_SIZE       32
# define	LINE_SIZE       64

void		print_err(char *error);
void		free_tab(char **tab);
void		*xmalloc(int size);
char		**str_to_word_tab(char *s);
char		*get_next_line(const int fd);
int		xread(int fd, char *buff, int nb);
int             xopen(char *pathname, int flags);
int		xwrite(int fd, char *s, int len);
int		xclose(int fd);
int		my_strlen(char *str);
int		my_strcmp(char *s1, char *s2);
void		my_putstr(char *str);
void		epur_str(char *str);
void		my_put_nbr(int nb, int fd);
int		my_str_isnum(char *s);
int		convert_color(char *s);

#endif		/*MY_H*/
